How to make an arc'd, but not mario-like jump in python, pygame [duplicate]
Posted
by
PythonInProgress
on Game Development
See other posts from Game Development
or by PythonInProgress
Published on 2013-06-23T13:47:05Z
Indexed on
2013/06/24
22:33 UTC
Read the original article
Hit count: 371
This question already has an answer here:
- Arc'd jumping method? 2 answers
- Analysis of Mario game Physics [closed] 6 answers
I have looked at many, many questions similar to this, and cannot find a simple answer that includes the needed code. What i am trying to do is raise the y value of a square for a certain amount of time, then raise it a bit more, then a bit more, then lower it twice. I cant figure out how to use acceleration/friction, and might want to do that too.
P.S. - can someone tell me if i should post this on stackoverflow or not? Thanks all!
Edit: What i am looking for is not mario-like physics, but a simple equation that can be used to increase then decrease height over the time over a few seconds.
© Game Development or respective owner